//
//  ImgCache.h
//  Koina
//
//  Created by welldone on 13-10-15.
//  Copyright (c) 2013年 net.koina. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ImgCache : NSObject

+(NSString*)getCacheDirectory;
+(NSString*)getTempDirectory;

+(void)cleanAll;

+ (void)resetCache;

+ (void)setObjectAppend:(NSData*)data forKey:(NSString*)key;

+ (void)setObject:(NSData*)data forKey:(NSString*)key;

+ (id)objectForKey:(NSString*)key;


//Bug
//+ (void)setObjectToTempApp:(NSData*)data forKey:(NSString*)key;//追加

+ (void)setObjectToTemp:(NSData*)data forKey:(NSString*)key;//覆盖

+ (NSData*)getObjectFromTempforKey:(NSString*)key;


@end
